package cn.edu.zjut.medlinebackend.mapper;

import cn.edu.zjut.medlinebackend.model.Post;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.Date;
import java.util.List;

/**
* @author 86182
* @description 针对表【post(帖子)】的数据库操作Mapper
* @createDate 2023-11-21 19:47:27
* @Entity cn.edu.zjut.medlinebackend.model.Post
*/
public interface PostMapper extends BaseMapper<Post> {

    List<Post> listPostWithDelete(Date fiveMinutesAgoDate);

    List<Post> getAllByUserid(Integer userId);
    List<Post> getAll();
    Post selectByName(String fileName);
}




